package com.yu.footballpromotionliveadmin.service;

import com.yu.footballpromotionliveadmin.dto.DTO;
import com.yu.footballpromotionliveadmin.page.PageInfo;
import com.yu.footballpromotionliveadmin.pojo.ActivityType;

public interface ActivityTypeService {
    /**
     * 查询全部
     * @return
     */
    public DTO<ActivityType> getAllActivityTypes() throws Exception;
    /**
     * 根据主键查询
     * @return
     */
    public DTO<ActivityType> getActivityTypeById(String actno) throws Exception;
    /**
     *删除
     * @param actno
     * @return
     */
    public DTO<ActivityType> deleteActivityType(String actno) throws Exception;
    /**
     *  修改
     * @param activityType
     * @return
     */
    public DTO<ActivityType> updateActivityType(ActivityType activityType)  throws Exception;
    /**
     *  增加
     * @param activityType
     * @return
     */
    public DTO<ActivityType> addActivityType(ActivityType activityType)  throws Exception;

    public DTO<ActivityType> getActivityTypesByPage(PageInfo pageInfo) throws Exception;

    public DTO<ActivityType> getActivityTypesWithOrders(String actno)  throws Exception;

    public DTO<ActivityType> activate(String actno)  throws Exception;

    public DTO<ActivityType> lettory(String actno, String giftName)  throws Exception;
}
